package cn.edu.jnu.booklistmainactivity;

import android.os.Bundle;

import androidx.preference.PreferenceFragmentCompat;


//public class settings_Fragment extends PreferenceFragment {
//看官方文档的:
public class settings_Fragment extends PreferenceFragmentCompat {
    @Override
    public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
        //super.onCreate(savedInstanceState);

        // Load the preferences from an XML resource
        //addPreferencesFromResource(R.xml.settings_preference);//添加preference的布局
        setPreferencesFromResource(R.xml.settings_preference, rootKey);
    }
}
